#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include "parsethread.h"

#include <QtGui>
#include <QTimer>


namespace Ui
{
    class MainWindow;
}

class MainWindow : public QWidget
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = 0, QString *url = 0);
    ~MainWindow();

private:
    Ui::MainWindow *ui;

    ParseThread parseThread;
    void reset();
    void showError(QNetworkReply::NetworkError code);
	QWidget *desktop;
	QFont boldfont;
	QFont normfont;
	QStringList keyList;
	QTimer *spintimer;
	QString spinstring;

private slots:
    void run();    
    void setResults();
	void boardSwitcher();
	void spinnerDraw();
};

#endif // MAINWINDOW_H
